package com.dodalizer.parser.comment;

public class Comment {

    private StringBuffer comment;

    public Comment() {
        this.comment = new StringBuffer();
    }

    public Comment(String comment) {
        this.comment = new StringBuffer(comment);
    }

    public void append(String line) {
        append(line, false);
    }

    public void append(String line, boolean newline) {
        if (newline) {
            this.comment.append("\n");
        }
        this.comment.append(line);
    }

    public String toString() {
        return comment.toString();
    }

}
